package com.tz.entity;

/**
 * Created by yejf on 2017/1/6.
 * 硬盘类
 */
public abstract class HardDisk {

    private Long id; //主键

    private int capacity; //容量

    private String vendor; //供应商

    public HardDisk(int capacity, String vendor) {
        this.capacity = capacity;
        this.vendor = vendor;
    }

    public HardDisk() {

    }

    @Override
    public String toString() {
        return "id=" + id +
                ", capacity=" + capacity +
                ", vendor='" + vendor;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public int getCapacity() {
        return capacity;
    }

    public void setCapacity(int capacity) {
        this.capacity = capacity;
    }

    public String getVendor() {
        return vendor;
    }

    public void setVendor(String vendor) {
        this.vendor = vendor;
    }
}
